#include "AlignNeckBehaviour.h"
#include "../CommonFunctions.h"

/*
 *	Toto spravanie zarovna krk s telom.
 */
void AlignNeckBehaviour::Behave()
{
	if(world->me->GetNeckDir().GetDeg() != 0)
	{
	    commandGenerator->TurnNeck((int) (-world->me->GetNeckDir().GetDeg()));
		DATA_STORAGE.turnNeck.timeOfLastTurnNeck = world->state->GetSimTime();
	}	
}
